{include file="public/layout"/}
<body data-type="generalComponents">
<div class="tpl-content-wrapper js-check-wrap">
    <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li class="am-active">权限</li>
        <li class="am-active">角色管理</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="tpl-block">
            <form class="js-ajax-form" method="post">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                {$action|actionList|raw}
                            </div>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="act" value="del">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form class="am-form">
                            <table class="am-table am-table-striped am-table-hover table-main">
                                <thead>
                                <tr>
                                    <th class="table-id">ID</th>
                                    <th class="table-title">角色名称</th>
                                    <th class="table-type">描述</th>
                                    <th class="table-set">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="v"}
                                <tr>
                                    <td>{$v.role_id}</td>
                                    <td>{$v.role_name}</td>
                                    <td>{$v.role_desc}</td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="{:url('admin/role_info', array('role_id'=>$v['role_id']))}"><i class="am-icon-pencil-square-o"></i> 编辑</a>
                                                <a class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only js-ajax-delete" href="{:url('admin/roleDel', array('role_id'=>$v['role_id']))}" data-msg="确定要删除吗？"><i class="am-icon-trash-o"></i> 删除</a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>

                </div>
            </form>
        </div>
        <div class="tpl-alert"></div>
    </div>
</div>

<script src="__ADMIN__/js/admin.js"></script>
</body>
</html>